package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_INFO_BUSI"
 *     
*/
public class CcpInfoBusi implements Serializable {

    /** identifier field */
    private String cibGuid;

    /** persistent field */
    private String cfbLabel;

    /** persistent field */
    private String name;

    /** persistent field */
    private String alias;

    /** nullable persistent field */
    private String title;

    /** nullable persistent field */
    private String subTitle;

    /** nullable persistent field */
    private String genDate;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public CcpInfoBusi(String cibGuid, String cfbLabel, String name, String alias, String title, String subTitle, String genDate, String remark) {
        this.cibGuid = cibGuid;
        this.cfbLabel = cfbLabel;
        this.name = name;
        this.alias = alias;
        this.title = title;
        this.subTitle = subTitle;
        this.genDate = genDate;
        this.remark = remark;
    }

    /** default constructor */
    public CcpInfoBusi() {
    }

    /** minimal constructor */
    public CcpInfoBusi(String cibGuid, String cfbLabel, String name, String alias) {
        this.cibGuid = cibGuid;
        this.cfbLabel = cfbLabel;
        this.name = name;
        this.alias = alias;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CIB_GUID"
     *         
     */
    public String getCibGuid() {
        return this.cibGuid;
    }

    public void setCibGuid(String cibGuid) {
        this.cibGuid = cibGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CFB_LABEL"
     *             length="20"
     *             not-null="true"
     *         
     */
    public String getCfbLabel() {
        return this.cfbLabel;
    }

    public void setCfbLabel(String cfbLabel) {
        this.cfbLabel = cfbLabel;
    }

    /** 
     *            @hibernate.property
     *             column="NAME"
     *             length="80"
     *             not-null="true"
     *         
     */
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /** 
     *            @hibernate.property
     *             column="ALIAS"
     *             length="80"
     *             not-null="true"
     *         
     */
    public String getAlias() {
        return this.alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    /** 
     *            @hibernate.property
     *             column="TITLE"
     *             length="80"
     *         
     */
    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    /** 
     *            @hibernate.property
     *             column="SUB_TITLE"
     *             length="80"
     *         
     */
    public String getSubTitle() {
        return this.subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    /** 
     *            @hibernate.property
     *             column="GEN_DATE"
     *             length="8"
     *         
     */
    public String getGenDate() {
        return this.genDate;
    }

    public void setGenDate(String genDate) {
        this.genDate = genDate;
    }

    /** 
     *            @hibernate.property
     *             column="REMARK"
     *             length="200"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cibGuid", getCibGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpInfoBusi) ) return false;
        CcpInfoBusi castOther = (CcpInfoBusi) other;
        return new EqualsBuilder()
            .append(this.getCibGuid(), castOther.getCibGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCibGuid())
            .toHashCode();
    }

}
